<?
	session_start();
	include('../config/config.php');
if (($_POST["uname"]<>"") && ($_POST["pwd"]<>""))
	{
		if ($_POST["uname"]==$adminlogin)
		{
			if ($_POST["pwd"]==$adminpasswd)
			{
				session_register("uname");
				$_SESSION["uname"] = $_POST["uname"];
				header("location: page.php");
			} else
				header("location: index.php");
		} else
			header("location: index.php");
	} else
		header("location: index.php");
?>